class AbstractVegetables 
{
    private string name;
	private int calories;
    private decimal amount;
    
    public string Name
    {
        get { return name; }

        set { name = value; }
    }

    public int Calories
    {
        get { return calories; }

        set { calories = value; }
    }
	
    public decimal Amount
    {
        get { return amount; }

        set { amount = value; }
    }
}

class Paslenovie : AbstractVegetables
{
	public string toxic;
	
   /* public string Toxic
    {
        get { return toxic; }

        set { toxic = value; }
    }*/

    public Paslenovie() { }

    public Paslenovie(string name)
    {
        this.Name = name;
    }

    public Paslenovie(string name, decimal amount)
    {
        this.Name = name;
        this.Amount = amount;
    }

    public Paslenovie(string name, int calories, decimal amount)
    {
        this.Name = name;
        this.Calories = calories;
        this.Amount = amount;
    }
}

class Carrot : Korneplodi
{
	public int age;

    public Carrot() { }

    public Carrot(string name)
    {
        this.Name = name;
    }

    public Carrot(string name, decimal amount)
    {
        this.Name = name;
        this.Amount = amount;
    }

    public Carrot(string name, int calories, decimal amount)
    {
        this.Name = name;
        this.Calories = 41;
        this.Amount = amount;
    }

	/*public int Age
    {
        get { return age; }

        set { age = value; }
    }*/
}

class Korneplodi : AbstractVegetables
{
	public int size;

/*	public int Size
    {
        get { return size; }

        set { size = value; }
	}
    */
 
    public Korneplodi() { }

    public Korneplodi(string name)
    {
        this.Name = name;
    }

    public Korneplodi(string name, decimal amount)
    {
        this.Name = name;
        this.Amount = amount;
    }

    public Korneplodi(string name, int calories, decimal amount)
    {
        this.Name = name;
        this.Calories = calories;
        this.Amount = amount;
    }
}

class Pryanie : AbstractVegetables
{
    public string zapah;

/*	public string Zapah
    {
        get { return zapah; }

        set { zapah = value; }
    }*/

    public Pryanie() { }

    public Pryanie(string name)
    {
        this.Name = name;
    }

    public Pryanie(string name, decimal amount)
    {
        this.Name = name;
        this.Amount = amount;
    }

    public Pryanie(string name, int calories, decimal amount)
    {
        this.Name = name;
        this.Calories = calories;
        this.Amount = amount;
    }
}

class Beet : Korneplodi
{
    public string rod;

	/*public string Rod
    {
        get { return rod; }

        set { rod = value; }
    }*/

    public Beet() { }

    public Beet(string name)
    {
        this.Name = name;
    }

    public Beet(string name, decimal amount)
    {
        this.Name = name;
        this.Amount = amount;
    }

    public Beet(string name, int calories, decimal amount)
    {
        this.Name = name;
        this.Calories = 40;
        this.Amount = amount;
    }
}

class Fennel : Pryanie
{
    public int life;
    public int lengthlist;
	
  /*  public int Life
    {
        get { return life; }

        set { life = value; }
    
    }*/
	/*public int LenghtList
    {
        get { return lengthlist; }

        set { lengthlist = value; }
    }*/

    public Fennel() { }

    public Fennel(string name)
    {
        this.Name = name;
    }

    public Fennel(string name, decimal amount)
    {
        this.Name = name;
        this.Amount = amount;
    }

    public Fennel(string name, int calories, decimal amount)
    {
        this.Name = name;
        this.Calories = 38;
        this.Amount = amount;
    }
}

class Basilica : Pryanie
{
	public string color;

	/*public string Color
    {
        get { return color; }

        set { color = value; }
    }*/

    public Basilica() { }

    public Basilica(string name)
    {
        this.Name = name;
    }

    public Basilica(string name, decimal amount)
    {
        this.Name = name;
        this.Amount = amount;
    }

    public Basilica(string name, int calories, decimal amount)
    {
        this.Name = name;
        this.Calories = 27;
        this.Amount = amount;
    }
}

class Tomato : Paslenovie
{
	public int lengthstebel;

	/*public int LenghtStebel
    {
        get { return lengthstebel; }

        set { lengthstebel = value; }
    }*/

    public Tomato() { }

    public Tomato(string name)
    {
        this.Name = name;
    }

    public Tomato(string name, decimal amount)
    {
        this.Name = name;
        this.Amount = amount;
    }

    public Tomato(string name, int calories, decimal amount)
    {
        this.Name = name;
        this.Calories = 20;
        this.Amount = amount;
    }
}

class Pepper : Paslenovie
{
	public string sort;
	public string color;
    
  /*  public string Sort
    {
        get { return sort; }

        set { sort = value; }
    }*/
    
   /* public string Color
    {
        get { return color; }

        set { color = value; }
    }*/

    public Pepper(string name, int calories, decimal amount)
    {
        this.Name = name;
        this.Calories = 27;
        this.Amount = amount;
    }
}

